<?php if ($rules): ?>
    <?php foreach ($rules as $rule): ?>
        <div class="form-group span-left">
            <label>【<?= $rule->currency->title ?>】充值规则</label>
            <p class="help-block">
                最小充值数量:
                <a class="text-edit editable editable-click" href="#" data-type="text" data-title="" data-table="summer_hjd_rg_rule" data-pk="<?= $rule->id ?>" data-name="rg_min"><?= $rule->rg_min ?></a>
                ,最大充值数量:
                <a class="text-edit editable editable-click" href="#" data-type="text" data-title="" data-table="summer_hjd_rg_rule" data-pk="<?= $rule->id ?>" data-name="rg_max"><?= $rule->rg_max ?></a>
                ,充值整数倍:
                <a class="text-edit editable editable-click" href="#" data-type="text" data-title="" data-table="summer_hjd_rg_rule" data-pk="<?= $rule->id ?>" data-name="rg_mul"><?= $rule->rg_mul ?></a>
            </p>
            <div class="field-switch">
                <p class="help-block">规则描述:</p>
            </div>
            <p>
                <a class="textarea-edit editable editable-pre-wrapped editable-click" href="#" data-type="textarea" data-title="规则描述" data-table="summer_hjd_rg_rule" data-pk="<?= $rule->id ?>"  data-name="rg_text" ><?= $rule->rg_text ?></a>
            </p>
            <div class="field-switch">
                <p class="help-block">充值开关:</p>
            </div>
            <label class="custom-switch switch">
                <input type="checkbox" data-table="summer_hjd_rg_rule" data-id="<?= $rule->id ?>" data-field="status" <?php echo $rule->status==1 ? 'checked="checked"' : '';  ?> >
                <span>
                    <span>开</span>
                    <span>关</span>
                </span>
                <a class="slide-button"></a>
            </label>
        </div>
    <?php endforeach ?>
<?php else: ?>
    <li class="no-data">暂未配置信息</li>
<?php endif ?>